package com.yoyo.itravel.bean;

import java.util.Date;

/**
 * @Description 攻略文章实体类
 * @Author:Jerry
 * @Date: created in 0:25 2020/6/16
 * @version: 1.0
 */
public class Artical {
    private String aid;//攻略文化在哪个id
    private String acity;//攻略所属的城市
    private String atitle;//攻略文章标题
    private String acontent;//攻略文章内容
    private String aimage;//文章中的图片
    private Date ptime;//发布时间
    private int likes;//文章的点赞人数
    private String cid;//攻略文章的评论id


    public Artical() {
    }

    public Artical(String aid,String acity,String atitle, String acontent, String aimage, Date ptime, int likes, String cid) {
        this.aid = aid;
        this.acity = acity;
        this.atitle = atitle;
        this.acontent = acontent;
        this.aimage = aimage;
        this.ptime = ptime;
        this.likes = likes;
        this.cid = cid;
    }

    public String getAcity() {
        return acity;
    }

    public void setAcity(String acity) {
        this.acity = acity;
    }
    public String getAid() {
        return aid;
    }

    public void setAid(String aid) {
        this.aid = aid;
    }

    public String getAtitle() {
        return atitle;
    }

    public void setAtitle(String atitle) {
        this.atitle = atitle;
    }

    public String getAcontent() {
        return acontent;
    }

    public void setAcontent(String acontent) {
        this.acontent = acontent;
    }

    public String getAimage() {
        return aimage;
    }

    public void setAimage(String aimage) {
        this.aimage = aimage;
    }

    public Date getPtime() {
        return ptime;
    }

    public void setPtime(Date ptime) {
        this.ptime = ptime;
    }

    public int getLikes() {
        return likes;
    }

    public void setLikes(int likes) {
        this.likes = likes;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    @Override
    public String toString() {
        return "Artical{" +
                "aid='" + aid + '\'' +
                ", atitle='" + atitle + '\'' +
                ", acontent='" + acontent + '\'' +
                ", aimage='" + aimage + '\'' +
                ", ptime=" + ptime +
                ", likes=" + likes +
                ", cid='" + cid + '\'' +
                '}';
    }
}
